package com.zhuang.observer;

/**
 * @Classname WexinUser
 * @Description 具体观察者类 实现更新的方法
 * @Date 2021/3/28 14:14
 * @Created by dell
 */

public class WexinUser implements Observer {
    //用户名
    private String name;

    public WexinUser(String name) {
        this.name = name;
    }

    public WexinUser() {

    }

    @Override
    public void update(String messages) {
        System.out.println(name + "-->" + messages);
    }
}
